import request from '@/utils/request'



export function informationList(data) { //资料管理-列表
  return request({
    url: '/hose-management/api/hose/file/page',
    method: 'post',
    data
  })
}


export function informationAdd(data) { //资料管理-新增
  return request({
    url: '/hose-management/api/hose/file/file/temp',
    method: 'post',
    data
  })
}

//原 put 
export function informationEdit(data) { //资料管理-编辑
  return request({
    url: '/hose-management/api/hose/file/put/update',
    method: 'post',
    data
  })
}

//原 del
export function informationDelete(id) { //资料管理-删除
  return request({
    url: '/hose-management/api/hose/file/del/del/'+id ,
    method: 'get',
  })
}


export function informationDetail(id) { //资料管理-详情
  return request({
    url: '/hose-management/api/hose/file/' + id,
    method: 'get',
  })
}



export function informationExport(data) { //资料管理-下载
  return request({
    url: '/hose-management/api/wholeString/export' ,
    responseType: 'arraybuffer',
    method: 'POST',
    data,
  })
}

